
package handler.mapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

/**
 * @author Eric.Kao(gau168.gau@msa.hinet.net)
 * @version 1.0
 * @company E885 Group
 * @copyright Copyright (c) 2001-2008
 */

public class HandlerMappingController1 implements Controller
{
	private String viewPage;

	public ModelAndView handleRequest( HttpServletRequest request, HttpServletResponse response ) throws Exception
	{
		return new ModelAndView( viewPage, "key1", "This is HandlerMappingController1" );
	}

	/**
	 * 會由 spring injection
	 * 
	 * @param viewPage the viewPage to set
	 */
	public void setViewPage( String viewPage )
	{
		this.viewPage = viewPage;
	}

}
